package com.vst.test.generate.structure.springmvc.plugin.util;
import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
 
public class JAXBExample2 {
	public static void main(String[] args) {
 
	 try {

			File file = new File("C:/ProyectosLiferay/runtime-EclipseApplication/WSEstadio/src/main/resources/file.xml");
		JAXBContext jaxbContext = JAXBContext.newInstance(EstructureObject.class);
 
		Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
		EstructureObject customer = (EstructureObject) jaxbUnmarshaller.unmarshal(file);
		System.out.println(customer);
 
	  } catch (JAXBException e) {
		e.printStackTrace();
	  }
 
	}
}